package com.tsf.demo.provider.controller;

import com.tsf.demo.commons.vo.Product;
import com.tsf.demo.provider.proxy.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
public class OrderController {

	@Autowired
	private OrderService orderService;

	//查询库存
	@RequestMapping(value = "/product/{id}", method = RequestMethod.GET)
	public Product getProduct(@PathVariable String id) {
		return orderService.getProduct(id);
	}

}